package com.linxin.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linxin.reggie.entity.OrderDetail;
import com.linxin.reggie.entity.Orders;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    void submit(Orders orders);

    /**
     * 用户界面查询
     * @param orderId
     * @return
     */
    public List<OrderDetail> getOrderDetailListByOrderId(Long orderId);

}
